<%@page import="com.wanmait.hotelManage.vo.RoomType"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%List<RoomType> roomTypes = (List<RoomType>)request.getAttribute("roomTypes");
String startTime=(String)request.getAttribute("startTime");
String endTime=(String)request.getAttribute("endTime");
%>
<%
for(RoomType roomType:roomTypes)
{
%>

	 <div class="Room"> 
    			<div class="single-item  wow fadeInLeft animated animated animated">
    				<div class="row">
    					<div class="col-md-4 col-sm-6 col-xs-12">
	    					<div class="img-box">
	    						<a href="<%=request.getContextPath() %>/roomListServlet?action=roomDetail&roomTypeName=<%=roomType.getTitle()%>&startTime=<%=startTime%>&endTime=<%=endTime%>">
	    						<figure><img  style="width: 400px;height: 300px;" src="<%=request.getContextPath() %>/static/images/rooms/<%=roomType.getPic() %>" alt=""></figure></a>
	    					</div>
	    				</div>
	    				<div class="col-md-8 col-sm-8 col-xs-12">
	    					<div class="rooms-content">
	    						<a href="<%=request.getContextPath() %>/roomListServlet?action=roomDetail&roomTypeName=<%=roomType.getTitle()%>&startTime=<%=startTime%>&endTime=<%=endTime%>"><h3><%=roomType.getTitle() %></h3></a>
	    						<div class="text"><span style="text-decoration: line-through"><%=roomType.getDiscountPrice() %></span>原价
	    						<span><%=roomType.getPrice() %> 现价</span> </div>
	    						<ul class="rating">
	    							<li><i class="fa fa-star" aria-hidden="true"></i></li>
	    							<li><i class="fa fa-star" aria-hidden="true"></i></li>
	    							<li><i class="fa fa-star" aria-hidden="true"></i></li>
	    							<li><i class="fa fa-star" aria-hidden="true"></i></li>
	    							<li><i class="fa fa-star" aria-hidden="true"></i></li>
	    						</ul>
	    						<p><%=roomType.getDescription() %></p>
	    						<a href="<%=request.getContextPath() %>/roomListServlet?action=roomDetail&roomTypeName=<%=roomType.getTitle()%>&startTime=<%=startTime%>&endTime=<%=endTime%>" class="btn-one">预定</a>
	    						<%--  <input id="startTime" type="hidden" value="<%=startTime%>">
   								<input id="endTime" type="hidden" value="<%=endTime%>"> --%>
	    					</div>
	    				</div>
    				</div>
    			</div>
    		 </div> 
    		 
<%
}
%>